package com.deli.service;


import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

public interface TestUserListService {

    String selectQuestionByStartID(int startId);

    List<LinkedHashMap<String,Object>> getStatusAndTestTypeByNameAndPhone(String userName, String phoneNum) throws Exception;

    Integer updateStatusByUserNameAndPhoneNum(String userName, String phoneNum, Integer testType, int status) throws Exception;

    Integer addUser(String userName, String mobilePhone, String departmentname, Integer testType, String userPosition, String textfield) throws Exception;

    List<LinkedHashMap<String,Object>> getStatusAndTestTypeByNameAndPhoneAndTestType(String userName, String phoneNum, Integer testType) throws Exception;

    List<LinkedHashMap<String,Object>> getList(String userName, String mobilePhone,
                                               String departmentname, Integer testType,
                                               String userPosition, String textfield,
                                               Integer pageNum) throws Exception;

    int getUserCount() throws Exception;

    HashMap<String, Object> batchImport(String fileName, MultipartFile file) throws Exception;
}
